package com.zmn.plat.services.interfaces.warranty.content;

import java.util.List;

import com.zmn.plat.model.entity.warranty.content.WarrantyContent;
import com.zmn.plat.model.entity.warranty.content.WarrantyContentQuery;
import com.zmn.plat.model.vo.warranty.WarrantyContentVO;

/**
 * 保修内容配置
 *
 * @author linfeng
 *
 * @since 2020-06-08 10:37:02
 */
public interface WarrantyContentService {
    /**
     * 根据主键查询
     * 
     * @param warrantyContentId
     *            ID
     * @return
     */
    WarrantyContent findByKey(Integer warrantyContentId);

    /**
     * 根据主键查询
     * 
     * @param warrantyContentIds
     *            ID集合
     * @return
     */
    List<WarrantyContent> findByKeys(List<Integer> warrantyContentIds);

    /**
     * 分页搜索
     * 
     * @param query
     *            条件
     * @return 列表
     */
    List<WarrantyContent> listPageByQuery(WarrantyContentQuery query);

    /**
     * 导出excel数据
     * 
     * @param query
     * @return
     */
    List<WarrantyContentVO> listExportExcelPageByQuery(WarrantyContentQuery query);

    /**
     * 搜索
     * 
     * @param query
     *            条件
     * @return
     */
    List<WarrantyContent> listByQuery(WarrantyContentQuery query);

    /**
     * 所有数据
     * 
     * @return
     */
    List<WarrantyContent> listAll();

    /**
     * 统计
     * 
     * @param query
     *            条件
     * @return
     */
    Integer countByQuery(WarrantyContentQuery query);

    /**
     * 更新状态
     *
     * @param warrantyContent
     * @return
     */
    Integer updateStatusByKey(WarrantyContent warrantyContent);

    /**
     * 更新状态
     * 
     * @param ids
     * @param status
     * @param mcStaffName
     * @return
     */
    Integer updateStatusBatchByKey(List<Integer> ids, Integer status, String mcStaffName);

    /**
     * 更新排序
     * 
     * @param warrantyContent
     * @return
     */
    Integer updateSortByKey(WarrantyContent warrantyContent);

    /**
     * 更新排序
     * 
     * @param warrantyContentId
     * @param sort
     * @param mcStaffName
     * @return
     */
    Integer updateSortByKey(Integer warrantyContentId, Integer sort, String mcStaffName);

    /**
     * 更新
     * 
     * @param warrantyContent
     * @return
     */
    Integer updateByKey(WarrantyContent warrantyContent);

    /**
     * 插入
     * 
     * @param warrantyContent
     * @return
     */
    Integer insert(WarrantyContent warrantyContent);

    /**
     * 删除
     * 
     * @param warrantyContentId
     *            ID
     * @return
     */
    Integer deleteByKey(Integer warrantyContentId);

}
